package com.wulin.wucut.controller.draft;

import com.wulin.wucut.domain.request.CreatDraftMetaInfoRequest;
import com.wulin.wucut.service.DraftService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/draft")
@RequiredArgsConstructor
public class DraftController {
    
    private final DraftService draftService;
    
    @PostMapping("/create")
    public void createDraft(@RequestBody @Validated CreatDraftMetaInfoRequest request) throws IOException {
        draftService.createDraft(request);
    }
    
    
    
    
}
